﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master"
    CodeBehind="Tags.aspx.vb" Inherits="HausaMathTermdev.Tags" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table width="100%">
        <tr>
            <td align="center">
             Tag List :
                <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource2">
                    <ItemTemplate>
                        <a href="Tags.aspx?Tag=<%# Eval("Tag")%> ">
                            <%# Eval("Tag")%></a>
                    </ItemTemplate>
                    <SeparatorTemplate>
                        |
                    </SeparatorTemplate>
                </asp:Repeater>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand="SELECT [TagID], [Tag] FROM [Tags]">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" AllowPaging="True"
                    AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="TermID" Width="100%">
                    <Columns>
                        <asp:BoundField DataField="Hausaterm" HeaderText="Hausa Term" SortExpression="Hausaterm">
                            <ControlStyle CssClass="fontsize" Font-Bold="False" />
                            <HeaderStyle CssClass="fontsize" HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:HyperLinkField DataNavigateUrlFields="TermID" DataNavigateUrlFormatString="details.aspx?TermID={0}"
                            DataTextField="Mathterm" HeaderText="Math Term" SortExpression="Mathterm" />
                        <asp:ImageField DataAlternateTextField="PictureSymbol" DataImageUrlField="PictureSymbol"
                            DataImageUrlFormatString="/image/{0}" HeaderText=" Thumbnail" SortExpression="PictureSymbol">
                            <ControlStyle CssClass="Thumbnail" />
                            <ItemStyle CssClass="Thumbnail" />
                        </asp:ImageField>
                        <asp:BoundField DataField="Category" HeaderText="Category" SortExpression="Category" />
                        <asp:BoundField DataField="Author" HeaderText="Author" SortExpression="Author" />
                    </Columns>
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand="SELECT [Tag], [TermID], [Mathterm], [Hausaterm], [Definition], [PictureSymbol], [SiteAdd], [Remark], [Category], [Author], [DDate] FROM [TagQuery] WHERE ([Tag] = ?)">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="Tag" QueryStringField="Tag" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>
</asp:Content>
